/*
Theme Name: Hotel in Paradise
Theme URI: https://hotelinparadise.example
Author: Hotel in Paradise
Description: Y2K-style retro WooCommerce theme for the Hotel in Paradise t-shirt shop. Times New Roman, boxed outlines, beveled 3D buttons - built to look exactly like an early-2000s website.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
WC requires at least: 8.0
WC tested up to: 9.0
Text Domain: hotel-in-paradise
*/

/* ==========================================================================
   Reset
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body { background: #ffffcc; }

/* ==========================================================================
   Layout
   ========================================================================== */
.wrap { background: #ffffcc; font-family: 'Times New Roman', Times, serif; color: #000; min-height: 100vh; padding: 0 16px 24px 16px; display: flex; flex-direction: column; }
.page-content { flex: 1 0 auto; }

a { color: #000080; }

/* ==========================================================================
   Site title / header
   ========================================================================== */
.site-title { text-align: center; padding: 72px 0 32px 0; line-height: 1.2; }
.site-title a { text-decoration: none; color: #000; }
.site-title .line1 { display: block; font-size: 42px; font-weight: normal; font-variant: small-caps; letter-spacing: 1px; }
.site-title .line2 { display: block; font-size: 42px; font-weight: normal; font-variant: small-caps; letter-spacing: 1px; }

.cart-toggle { text-align: center; margin-bottom: 32px; }
.cart-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: #d4d0c8; border: 2px outset #fff; cursor: pointer; padding: 0; text-decoration: none; }
.cart-icon-btn:active { border-style: inset; }
.cart-icon-btn svg { width: 24px; height: 24px; display: block; }
.cart-icon-btn .cart-count-main { font-size: 20px; line-height: 1; font-family: 'Times New Roman', serif; color: #000; }

/* ==========================================================================
   Product grid (WooCommerce shop archive)
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 580px; margin: 0 auto 0 auto; }
.product-card { background: #ffffcc; border: 1px solid #000; padding: 8px; }

.product-img { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #e8e8d0; border: 1px solid #aaa; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #666; margin-bottom: 8px; overflow: hidden; }
.gal-slide { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; }
.gal-slide.active { display: flex; }
.gal-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-arrow { position: absolute; top: 50%; margin-top: -11px; width: 20px; height: 22px; line-height: 18px; text-align: center; padding: 0; font-size: 12px; font-family: 'Times New Roman', serif; background: #d4d0c8; border: 2px outset #fff; color: #000; cursor: pointer; }
.gal-arrow:active { border-style: inset; }
.gal-prev { left: 4px; }
.gal-next { right: 4px; }
.gal-dots { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; }
.gal-dots .dot { display: inline-block; width: 7px; height: 7px; margin: 0 2px; background: #fff; border: 1px solid #000; }
.gal-dots .dot.active { background: #000; }

.product-name { font-size: 13px; margin-bottom: 3px; }
.product-price { font-size: 13px; margin-bottom: 8px; }
.product-price del { color: #666; margin-right: 6px; }
.product-price ins { text-decoration: none; }
.card-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

select, .hip-size-select { font-family: 'Times New Roman', serif; font-size: 12px; background: #d4d0c8; border: 2px inset #888; padding: 2px 4px; color: #000; cursor: pointer; }

.btn,
a.btn,
button.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #place_order {
  display: inline-block; background: #d4d0c8; border: 2px outset #fff; padding: 3px 9px; font-size: 12px; font-family: 'Times New Roman', serif; cursor: pointer; color: #000; white-space: nowrap; text-decoration: none;
}
.btn:active,
.woocommerce a.button:active,
.woocommerce button.button:active,
.woocommerce input.button:active,
.woocommerce #place_order:active { border-style: inset; }
.btn[disabled] { cursor: default; opacity: 0.6; }

/* ==========================================================================
   Site windows (About / Shipping / Returns / Size Guide / legal pages)
   ========================================================================== */
.site-window { max-width: 580px; margin: 0 auto 64px auto; border: 1px solid #000; padding: 18px; background: #ffffcc; }
.site-window h2 { font-size: 20px; font-weight: normal; text-align: center; font-variant: small-caps; letter-spacing: 1px; margin-bottom: 18px; }

.about-photo { width: 340px; max-width: 100%; height: 220px; margin: 0 auto 32px auto; }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 45%, transparent 72%); }

.page-content-body { text-align: center; font-size: 13px; line-height: 1.8; }
.page-content-body p { margin-bottom: 18px; }
.page-content-body p:last-child { margin-bottom: 0; }
.page-content-body a { color: #000080; }

/* Native WordPress Table block, used for Shipping rates / Size Guide charts.
   Lines are drawn with box-shadow instead of border: some responsive/mobile
   table CSS from WordPress core switches table/td/th to display:block on
   small screens, which breaks border-collapse and makes adjacent 1px
   borders stack into a visibly thicker line. box-shadow isn't affected by
   border-collapse or display mode at all, so it stays a crisp 1px on every
   device. `border: 0 !important` additionally strips any border core CSS
   still tries to add, so it can never show through underneath. */
.page-content-body .wp-block-table table,
.page-content-body table {
  width: 100%; border-collapse: separate; border-spacing: 0; border: 0 !important;
  box-shadow: 0 -1px 0 0 #000; margin-bottom: 18px; font-size: 13px;
}
.page-content-body .wp-block-table table th,
.page-content-body .wp-block-table table td,
.page-content-body table th,
.page-content-body table td {
  border: 0 !important; box-shadow: inset 0 -1px 0 0 #000; padding: 10px 8px; text-align: left; font-weight: normal;
}
.page-content-body table th { font-variant: small-caps; letter-spacing: 0.5px; }

/* ==========================================================================
   Contact form (works with most form plugins - generic tag styling)
   ========================================================================== */
.page-content-body form { max-width: 400px; margin: 18px auto 0 auto; text-align: left; }
.page-content-body label { display: block; font-size: 13px; margin-bottom: 4px; }
.page-content-body input[type="text"],
.page-content-body input[type="email"],
.page-content-body input[type="tel"],
.page-content-body input[type="url"],
.page-content-body textarea,
.page-content-body select {
  width: 100%; font-family: 'Times New Roman', serif; font-size: 13px; padding: 4px 6px; border: 2px inset #888; background: #fff; color: #000; margin-bottom: 12px;
}
.page-content-body textarea { resize: vertical; min-height: 90px; }
.page-content-body form .btn,
.page-content-body form input[type="submit"],
.page-content-body form button[type="submit"] {
  display: inline-block; background: #d4d0c8; border: 2px outset #fff; padding: 4px 14px; font-size: 13px; font-family: 'Times New Roman', serif; cursor: pointer; color: #000; width: auto; margin: 8px auto 0 auto;
}

/* ==========================================================================
   Shop info text box (double border, pulled from the Shop page content)
   ========================================================================== */
.info-text { text-align: center; font-size: 13px; line-height: 1.8; margin: 64px auto; max-width: 440px; padding: 16px 20px; border: 3px double #000; background: #ffffcc; }
.info-text a { color: #000080; }
.info-text p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.footer-nav .btn { font-size: 13px; padding: 4px 14px; }
.social-nav { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.social-nav .cart-icon-btn { width: 44px; height: 44px; }
.social-nav .cart-icon-btn svg { width: 22px; height: 22px; }
.legal { text-align: center; font-size: 11px; padding-top: 10px; color: #333; }
.legal a { color: #000080; margin: 0 6px; }

/* ==========================================================================
   WooCommerce notices (added-to-cart messages, errors, coupon feedback)
   ========================================================================== */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
  max-width: 580px; margin: 0 auto 24px auto; border: 1px solid #000; padding: 12px 16px; background: #ffffcc; font-size: 13px; list-style: none;
}
.woocommerce-message a, .woocommerce-error a, .woocommerce-info a { color: #000080; }

/* ==========================================================================
   WooCommerce Cart & Checkout (native templates, reskinned via CSS only)
   ========================================================================== */
.woocommerce-cart-form,
.cart-collaterals .cart_totals,
.woocommerce-checkout .woocommerce {
  max-width: 580px; margin: 0 auto 64px auto; border: 1px solid #000; padding: 18px; background: #ffffcc;
}
.cart_totals h2, .woocommerce-checkout h3 { font-size: 20px; font-weight: normal; text-align: center; font-variant: small-caps; letter-spacing: 1px; margin-bottom: 18px; }

.woocommerce table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; border: 0 !important; box-shadow: 0 -1px 0 0 #000; margin-bottom: 18px; font-size: 13px; }
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { border: 0 !important; box-shadow: inset 0 -1px 0 0 #000; padding: 10px 8px; text-align: left; vertical-align: middle; }
.woocommerce table.shop_table th { font-variant: small-caps; letter-spacing: 0.5px; font-weight: normal; }
.woocommerce table.shop_table td.product-thumbnail img { width: 50px; height: 50px; object-fit: cover; border: 1px solid #000; }
.woocommerce table.shop_table td.product-remove a { border: 1px solid #000; width: 20px; height: 20px; line-height: 18px; text-align: center; display: inline-block; text-decoration: none; color: #000; }

.woocommerce .quantity .qty { width: 50px; border: 2px inset #888; font-family: 'Times New Roman', serif; font-size: 13px; padding: 4px; background: #fff; }
.woocommerce .coupon .input-text { border: 2px inset #888; font-family: 'Times New Roman', serif; font-size: 13px; padding: 4px 6px; background: #fff; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%; font-family: 'Times New Roman', serif; font-size: 13px; padding: 4px 6px; border: 2px inset #888; background: #fff; color: #000;
}

/* ==========================================================================
   Pagination (shop archive)
   ========================================================================== */
.woocommerce-pagination { text-align: center; margin: 32px 0 0 0; }
.woocommerce-pagination ul { list-style: none; display: inline-flex; gap: 6px; }
.woocommerce-pagination a, .woocommerce-pagination span {
  display: inline-block; background: #d4d0c8; border: 2px outset #fff; padding: 3px 9px; font-size: 12px; font-family: 'Times New Roman', serif; color: #000; text-decoration: none;
}
.woocommerce-pagination .current { border-style: inset; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; max-width: 380px; }
  .site-window,
  .woocommerce-cart-form,
  .cart-collaterals .cart_totals,
  .woocommerce-checkout .woocommerce { max-width: 380px; }
}
@media (max-width: 420px) {
  .site-title { padding: 48px 0 24px 0; }
  .site-title .line1, .site-title .line2 { font-size: 34px; }
}
