/* ============================================================
   PRODUCT CARD
============================================================ */
.gs-product-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eee;
    transition: box-shadow .25s ease, transform .25s ease;
    padding: 12px;
}

.gs-product-card:hover {
    box-shadow: 0 14px 30px rgba(13,13,13,0.08);
    transform: translateY(-4px);
}

/* Product Image */
.gs-product-image {
    position: relative;
    display: block;
}
.gs-product-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ============================================================
   DESCRIPTION ON HOVER
============================================================ */
.gs-hover-description {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 10px 12px;
    font-size: 13px;
    transform: translateY(12px);
    opacity: 0;
    transition: all .28s ease;
    pointer-events: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.gs-product-card:hover .gs-hover-description {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================
   ACTION ICONS
============================================================ */
.gs-product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(10px);
    transition: all .22s ease;
    z-index: 3;
}
.gs-product-card:hover .gs-product-actions {
    opacity: 1;
    transform: translateX(0);
}

/* Action Buttons */
.gs-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
    position: relative;
    transition: .2s;
}
.gs-action-btn:hover {
    background: #111;
    color: #fff;
    transform: scale(1.05);
}

/* Tooltip */
.gs-tooltip {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #111;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.gs-action-btn:hover .gs-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ============================================================
   PRODUCT META (TITLE + PRICE)
============================================================ */
.gs-product-meta {
    margin-top: 12px;
    text-align: left;
}

.gs-product-title {
    font-size: 15px;
    margin: 0 0 8px;
    font-weight: 600;
}
.gs-product-title a {
    color: #222;
    text-decoration: none;
}

.gs-product-price {
    color: #c62828;
    font-weight: 700;
}

/* ============================================================
   PRODUCT GRID
============================================================ */
.gs-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.gs-product-grid .gs-product-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Responsive product grid sizes */
@media (max-width: 1200px) {
    .gs-product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
@media (max-width: 992px) {
    .gs-product-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }
}
@media (max-width: 768px) {
    .gs-product-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}
@media (max-width: 480px) {
    .gs-product-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* ============================================================
   DRAWER (QUICK VIEW SIDEBAR)
============================================================ */
#gs-product-drawer {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 999999;
    pointer-events: none;
}
#gs-product-drawer.open {
    display: block;
    pointer-events: auto;
}

/* Overlay */
.gs-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    transition: opacity .28s ease;
}
#gs-product-drawer.open .gs-drawer-overlay {
    opacity: 1;
}

/* Drawer Panel */
.gs-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform .32s ease;
    overflow-y: auto;
    padding: 24px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.12);
}
#gs-product-drawer.open .gs-drawer-content {
    transform: translateX(0);
}

/* Drawer Close Button */
.gs-drawer-close {
position: absolute;
    right: 0;
    top: 0;
    font-size: 26px;
    cursor: pointer;
    color: #fff;
    background: darkred;
    width: 50px;
    height: 50px;
    border: darkred;
    border-radius: 50%;
}

/* Drawer Title / Price */
.gs-drawer-title {
    font-size: 20px;
    margin: 10px 0;
    font-weight: 700;
    color: #000;
}
.gs-drawer-price {
    font-size: 18px;
    font-weight: 700;
    color: #c62828;
    margin-bottom: 10px;
}

/* Drawer Gallery */
.gs-drawer-gallery img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Add to Cart */
.gs-drawer-addtocart {
    background: #111;
    color: #fff;
    display: inline-block;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    width: 100%;
    margin-top: 14px;
    transition: .2s;
}
.gs-drawer-addtocart:hover {
    background: #222;
}

/* Responsive drawer full width */
@media (max-width: 768px) {
    .gs-drawer-content {
        width: 100%;
    }
}
/* Variation Wrapper Container */
.gs-variation-wrapper {
    margin: 20px 0;
    padding: 18px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

/* Field Row */
.gs-variation-field {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

/* Label Styling */
.gs-variation-field label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

/* Variation Dropdown */
.gs-variation-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #d4d4d4;
    background: #fff;
    font-size: 14px;
    color: #222;
    transition: all 0.25s ease;
    appearance: none;
    outline: none;
    cursor: pointer;
}

/* On Hover / Focus */
.gs-variation-select:hover,
.gs-variation-select:focus {
    border-color: #3a7ef5;
    box-shadow: 0 0 4px rgba(58,126,245,0.3);
}

/* Dropdown Arrow Fix */
.gs-variation-select::-ms-expand {
    display: none;
}

/* Responsive */
@media (max-width: 480px) {
    .gs-variation-wrapper {
        padding: 14px;
    }
    .gs-variation-select {
        padding: 10px;
    }
}
/* Quantity Box Wrapper */
.gs-qty-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    font-family: inherit;
}

/* Quantity Label */
.gs-qty-box label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Quantity Input Field */
.gs-qty-box input[type="number"] {
    width: 70px;
    padding: 10px 12px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    text-align: center;
    outline: none;
    transition: all 0.25s ease;
    -moz-appearance: textfield; /* hide number arrows in Firefox */
}

/* Remove default spinner for Webkit browsers */
.gs-qty-box input[type="number"]::-webkit-outer-spin-button,
.gs-qty-box input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hover / Focus */
.gs-qty-box input[type="number"]:hover,
.gs-qty-box input[type="number"]:focus {
    border-color: #3a7ef5;
    box-shadow: 0 0 4px rgba(58, 126, 245, 0.3);
}

/* Responsive */
@media (max-width: 480px) {
    .gs-qty-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .gs-qty-box input[type="number"] {
        width: 100%;
    }
}
.gs-drawer-shortdesc {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}
